﻿@using Work.BL.POCOs
@model Work.UI.Web.MVC.Models.Registration.EmployeeModel

@{
    ViewBag.Title = "EmployeeStep2";

    Layout = "~/Views/Shared/_MyLayout.cshtml";
}

@{
    Html.EnableClientValidation(true);
}


@section Menu{
    @RenderPage("~/Views/Shared/_EmployeeMenu.cshtml")
}

<h2>EmployeeStep2</h2>

@using (Html.BeginForm())
{
    <table>
        <tr>
            <td>
                Name
            </td>
            <td>
                @Html.TextBoxFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </td>
        </tr>
        <tr>
            <td>
                Surname
            </td>
            <td>
                @Html.TextBoxFor(model => model.Surname)
                @Html.ValidationMessageFor(model => model.Surname)
            </td>
        </tr>
        <tr>
            <td>
                Gender
            </td>
            <td>
                @Html.RadioButtonFor(model => model.Gender, "Male", new { @checked = "checked" })Male<br/>
                @Html.RadioButtonFor(model => model.Gender, "Female")Female
            </td>
        </tr>
        <tr>
            <td>
                Region
            </td>
            <td>
                @Html.DropDownListFor(model => model.IdRegion, new SelectList(ViewBag.Region, "Id", "City"))
                @Html.ValidationMessageFor(model => model.IdRegion)
            </td>
        </tr>
        <tr>
            <td>
                Birthday
            </td>
            <td>
                @Html.TextBoxFor(model => model.Birthday, new { @class = "date-field" })
                @Html.ValidationMessageFor(model => model.Birthday)
            </td>
        </tr>
        <tr>
            <td>
                Phone
            </td>
            <td>
                @Html.TextBoxFor(model => model.Phone)
                @Html.ValidationMessageFor(model => model.Phone)
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" />
            </td>
        </tr>
    </table>
}
